package nyist.media.entity.admin;

import lombok.Data;
import nyist.media.entity.BaseEntity;

import javax.persistence.*;

/**
 * 操作日志
 * @author : dcf
 * @date : 2019/3/11
 */

@Entity
@Table(name = "m_p_log")
@Data
public class Log extends BaseEntity {

    /**
     * 操作类型	varchar(255)	非空
     */
    @Column(nullable = false, updatable = false, columnDefinition = "varchar(255) COMMENT '操作类型'")
    private String operation;

    /**
     * 操作人	varchar(30)	非空
     */
    @Column(nullable = false, updatable = false, length = 30, columnDefinition = "varchar(30) COMMENT '操作人'")
    private String operator;

    /**
     * 参数	text
     */
    @Lob
    @Basic(fetch = FetchType.LAZY)
    @Column(columnDefinition = "text")
    private String params;

    /**
     * ip地址	varchar(20)
     */
    @Column(nullable = false, updatable = false, length = 20)
    private String ip;
}

